<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
  <!--[if IE 7]>
    <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
  <![endif]-->
  <link rel="stylesheet" href="assets/css/jquery-ui-1.10.3.full.min.css">
  <link rel="stylesheet" href="assets/css/ace.min.css" />
  <link rel="stylesheet" href="css/style.css"/>
<title>项目立项</title>
</head>

<body>
<div class="page-content">
  <div class="Manager_style">
    <span class="title_name">新建项目</span>
    <div class="project_style">
      <ul class="Add_Manager_style clearfix">
       <li><label class="label_name">项目名称</label><input name="项目名称" type="text"  class="text" style=" width:570px; "/></li>
       <li><label class="label_name">加油地点</label><input name="加油地点" type="text"  class="text" style=" width:250px; "/></li>
       <li><label class="label_name">预计加油时间</label> <input name="预计加油时间" class="inline laydate-icon" id="start" style="width:200px; margin-left:10px"/></li>
       <li><label class="label_name">船名</label><select name="询价模板" size="1" style="width:250px; margin-left:10px" >
        <option value="">--选择船只--</option>
         <option value="1">长江号</option>
         <option value="2">商户号</option>
       </select></li>
       <li><label class="label_name">报价截止时间</label><input name="报价截止时间" class="inline laydate-icon" id="time1" style="width:200px; margin-left:10px"/></li>
       <li><label class="label_name">询价模板</label><select name="询价模板" size="1" style="width:200px; margin-left:10px" >
         <option value="1">2015报价模板</option>
         <option value="2">2016年报价模板</option>
       </select></li>
      </ul>
    </div>
     <div class="Item_Details">
  <table id="" class="table table-striped table-bordered table-hover">
      <thead>
       <tr>
        <th>产品名称</th>
        <th width="80">采购数量</th>
        <th>单位</th>
        <th width="100">投标当天最高限价（元/吨）</th>
        <th width="100">报价当天最高限价（元/吨）</th>
        <th class="label_name"><P class="name">A供应商</P><P class="price"><span class="right_border">入围价</span><span>最高限价</span></P></th>
        <th class="label_name"><P class="name">B供应商</P><p class="price"><span class="right_border">入围价</span><span>最高限价</span></p></th>
        <th class="label_name"><P class="name">C供应商</P><p class="price"><span class="right_border">入围价</span><span>最高限价</span></p></th>       
       </tr>
      </thead>
     <tbody>
      <tr>
       <td>#0号柴油</td>
       <td><input name="采购数量" type="text"  class="add_text"  style="width:60px"/></td>
       <td>吨</td>
       <td>178</td>
       <td ><input name="报价价格" type="text" class="add_text" style="width:60px"/></td>
       <td class="price">
       <div class="tb_price right_border">231</div>
       <div class="tb_price"><input name="报价价格" type="text" class="add_text" style="width:60px"/></div>
       </td>
       <td class="fg">
       <div class="tb_price right_border">156</div>
       <div class="tb_price"><input name="报价价格" type="text" class="add_text" style="width:60px"/></div>
       </td>
       <td class="fg">
       <div class="tb_price right_border">178</div>
       <div class="tb_price"><input name="报价价格" type="text" class="add_text" style="width:60px"/></div>
       </td>
      </tr>
       <tr>
       <td>#18号柴油</td>
       <td><input name="" type="text" class="add_text" style="width:60px"/></td>
       <td>吨</td>
       <td>178</td>
       <td ><input name="报价价格" type="text" class="add_text" style="width:60px"/></td>
       <td class="price">
         <span class="tb_price right_border">231</span>
         <span class="tb_price"><input name="报价价格" type="text" class="add_text" style="width:60px"/></span>
       </td>
       <td class="fg">
       <span class="tb_price right_border">156</span>
       <span class="tb_price"><input name="报价价格" type="text" class="add_text" style="width:60px"/></span>
       </td>
       <td class="fg">
       <span class="tb_price right_border">178</span>
       <span class="tb_price"><input name="报价价格" type="text" class="add_text" style="width:60px"/></span>
       </td>
      </tr>
     </tbody>
     </table>
  </div>
  <div class="Tips_content">
  <h3>询价说明：</h3>
  <textarea name="" cols="" rows="" style=" width:500px; height:220px; margin-left:0"></textarea>
  </div>
  <!--正式做的时删除该内容-->
  <div  style="color:#F30">备注：最高限价=本项目中标价×投标当天的国家发改委发布的江苏省柴油最高零售价÷供货当天的的国家发改委发布的江苏省柴油最 
高零售价 
</div>
 </div>
   <div class="btn_operating"><button id="submit" class="btn btn-info" type="button">提交并查询</button><button class="btn btn-warning" type="button">暂存项目</button><button class="btn" type="button">重置</button></div>
</div>
<script src="assets/js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="assets/layer/layer.js" type="text/javascript"></script>
<script src="assets/laydate/laydate.js" type="text/javascript"></script>
<script>
laydate({
    elem: '#start', 
    event: 'focus' 
});
laydate({
    elem: '#time1', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
    event: 'focus' ,//响应事件。如果没有传入event，则按照默认的click
	format: 'YYYY-MM-DD hh:mm',
    min: laydate.now(), //设定最小日期为当前日期
    max: '2099-06-16 23:59', //最大日期
    istime: true,
    istoday: false,
});
/***判断用户添加文本**/
 jQuery(document).ready(function(){  
 
  $("#submit").click(function(){
	// var num=0;
     var str="";
     $("input[type$='text'],select").each(function(n){
          if($(this).val()=="")
          {
              // num++;
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,				
          }); 
             // layer.msg(str+=""+$(this).attr("name")+"不能为空！\r\n");
             layer.close(index);
          }
		  
     });
    
});
 });
</script>
</body>
</html>
